<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title> 精品工程列表 </title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<link rel="stylesheet" href="admin/css/common.css" type="text/css" />
	<link rel="stylesheet" href="admin/css/provider.css" type="text/css" />
	<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
  </head>
  
  <body>
  	<div id="provider_zone">
	  <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style" style="color: #73938E;	font-size: 9pt;">
	    <tr class="head">
	     	<th>精品工程名字</th>
	     	<th width="150px">操作</th>
	    </tr>
	    <c:forEach items="${page.list}" var="item" > 
		    <tr>
		    	<td><a target="_blank" href="project/getProject.action?projectId=${item.id }"> ${item.title }</a></td>
		    	<td align="center">
		    		<a href="project/getProject.action?projectId=${item.id }" target="_blank">查看</a>&nbsp;|&nbsp;
		    		<a href="project/toUpdateProject.action?projectId=${item.id }">编辑</a>
		    		&nbsp;|&nbsp;<a href="project/deleteProject.action?projectId=${item.id }" onclick="return confirm('确定删除此供应商?');" >移除</a>
		    	</td>
		    </tr>
		</c:forEach>
	    <tr>
	    	<td colspan="2" class="left_title_2" style="padding-right: 20px;">
	    		<span class="tip">
	    			当前第${page.currentPage}页，总共有${page.totalRows }条记录，总共${page.totalPages }页
	    		</span>
	    		&nbsp;&nbsp;&nbsp;&nbsp;
	    		<c:if test="${page.currentPage != 1}">
	    			<a href="project/listProjectAdmin.action?pageNo=${pageNo -1}">上一页</a>
	    		&nbsp;&nbsp;
	    		</c:if>
				<c:if test="${page.currentPage != page.totalPages}">
	    			<a href="project/listProjectAdmin.action?pageNo=${pageNo +1}">下一页</a>
	    		</c:if>
			</td>
	    </tr>
	  </table>
	</div>
  </body>
</html>
